# Contributor: Paul Bredbury <brebs@sent.com>
# Maintainer:
pkgname=atari800
pkgver=5.2.0
pkgrel=0
pkgdesc="Atari 8-bit computer emulator"
url="https://atari800.github.io/"
arch="x86_64"
license="GPL-2.0-or-later"
makedepends="autoconf automake sdl12-compat-dev mesa-dev unzip"
options="!check" # No test suite
subpackages="$pkgname-doc"
source="https://github.com/atari800/atari800/archive/ATARI800_${pkgver//./_}.tar.gz"
builddir="$srcdir/atari800-ATARI800_${pkgver//./_}"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
adcd19343c59771724f71d25d9c163843d953140696830e72520392519122f9b6b74cb8ceabf91618afc1cbdd30739342320f934ef63390a0c680243d9eac015  ATARI800_5_2_0.tar.gz
"
